(function($){

	var tb = '<div class="t"><div class="angles l"></div><div class="angles r"></div></div>';
	var bb = '<div class="b"><div class="angles l"></div><div class="angles r"></div></div>';

$.fn.roundborder = function(options) {

	var defaults = {
		borderclass: 'roundborder',
		contentclass: 'content'
	};

	var options = $.extend(defaults, options);

	var e = document.createElement('div');
	$(e).addClass(options.contentclass);

	return this.each(function(o) {
		o = $(this);
		o.css('border', 'none');
		o.wrapInner(e);
		o.prepend(tb);
		o.append(bb);
		o.addClass(options.borderclass);
	});
};

})(jQuery);

